package wan.com.templateproject.service;

import com.github.pagehelper.PageInfo;
import wan.com.templateproject.common.BaseResponse;
import wan.com.templateproject.entity.People;

/**
 * @author wan
 * @version 1.0.0
 * @Description people业务层
 * @createTime 2021年08月17日 14:14:18
 */
public interface PeopleService {

    /**
     * 多线程
     * 发送数据库信息到redis
     *
     * @param num
     * @return
     */
    BaseResponse<Boolean> sendRedis(Integer num) throws InterruptedException;

    BaseResponse<Boolean> sendRabbitmq(String msg);

    BaseResponse<Boolean> updatePeople(People people);

    BaseResponse<PageInfo<People>> getPeoples(Integer pageNum, Integer pageSize);

    BaseResponse<Boolean> test1();
}
